package de.wesemann.mediahandbook.le.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import de.wesemann.mediahandbook.le.R;
import de.wesemann.mediahandbook.le.widget.TitleWidget;

public class MediahandbookLe extends Activity {
private static final String LOG_TAG = MediahandbookLe.class.getSimpleName();
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		TitleWidget titleWidget = (TitleWidget) findViewById(R.id.titleWidget);
		titleWidget.setTitle(getString(R.string.app_name));
		titleWidget.hideProgressBar();
		titleWidget.hideSearchIcon();
	}

	public void onImageClick(View view) {
		if (view.getId() == R.id.title_icon) {
		}
	}

	public void onButtonClick(View view) {
		switch (view.getId()) {
		case R.id.bu_to_companies:
			Log.d(LOG_TAG, "companies clicked");
			startActivity(new Intent(this, CompaniesOverview.class));
			break;
		case R.id.bu_to_branches:
			Log.d(LOG_TAG, "branches clicked");
			startActivity(new Intent(this, BranchOverview.class));
			break;
		case R.id.bu_to_districts:
			Log.d(LOG_TAG, "districts clicked");
			startActivity(new Intent(this, DistrictOverview.class));
			break;
		}

	}
}